package org.example.erp.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.erp.controller.DataResult;
import org.example.erp.domain.NewSalesOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.erp.web.VO.SalesOrderVO;

import java.util.List;

/**
* @author 28254
* @description 针对表【new_sales_order(销售订单表)】的数据库操作Service
* @createDate 2024-12-02 14:11:06
*/
public interface NewSalesOrderService extends IService<NewSalesOrder> {
    void insertPrimaryOrder(NewSalesOrder newSalesOrder);
    void updatePrimaryOrder(NewSalesOrder newSalesOrder);
    DataResult deletePrimaryOrders(List<Integer> salesOrderId);
    IPage<SalesOrderVO> findSalesOrders(Integer pageNum, Integer pageSize, String salesOrderCode, String salesOrderName);
    NewSalesOrder findSalesOrderById(Integer salesOrderId);
}
